package io.renren.modules.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 用户足迹实体
 * @author zzh
 * @email 862583291@qq.com
 * @date 2019-1-16 18:51:40
 */
@TableName("nideshop_footprint")
@Data
public class FootprintVo implements Serializable {
    private static final long serialVersionUID = 1L;
    //主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //会员Id
    private Long userId;
    //商品id
    private Long goodsId;
    //记录时间
    private Long addTime;
    //推荐人
    private Long referrer;

    // 商品冗余字段
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String listPicUrl;
    @TableField(exist = false)
    private String goodsBrief;
    @TableField(exist = false)
    private BigDecimal retailPrice;
    @TableField(exist = false)
    private String nickname;
    @TableField(exist = false)
    private String avatar;
}
